.red-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 50%, #ffaaaa 100%);
  position: relative;
  overflow: hidden;
}

.red-content {
  position: relative;
  height: calc(100vh - 45px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.red-background {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 背景装饰 */
.bg-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.coin {
  position: absolute;
  font-size: 24px;
  animation: float 3s ease-in-out infinite;
}

.coin1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.coin2 {
  top: 20%;
  right: 15%;
  animation-delay: 0.5s;
}

.coin3 {
  bottom: 30%;
  left: 20%;
  animation-delay: 1s;
}

.coin4 {
  bottom: 15%;
  right: 10%;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* 红包容器 */
.red-packet-container {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 红包设计 */
.red-packet {
  width: 200px;
  height: 280px;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border-radius: 20px 20px 40px 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.red-packet:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  transform: translateY(-5px);
}

.red-packet.disabled {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  cursor: not-allowed;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  opacity: 0.7;
}

.red-packet.disabled:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transform: none;
}

.red-packet-top {
  height: 60px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 20px 20px 0 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.red-packet.disabled .red-packet-top {
  background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
}

.red-packet-bow {
  width: 40px;
  height: 20px;
  background: #dc2626;
  border-radius: 10px;
  position: relative;
}

.red-packet.disabled .red-packet-bow {
  background: #6b7280;
}

.red-packet-bow::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -10px;
  width: 20px;
  height: 30px;
  background: #dc2626;
  border-radius: 50%;
}

.red-packet-bow::after {
  content: '';
  position: absolute;
  top: -5px;
  right: -10px;
  width: 20px;
  height: 30px;
  background: #dc2626;
  border-radius: 50%;
}

.red-packet-body {
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.red-packet-text {
  font-size: 24px;
  font-weight: bold;
  color: #fbbf24;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.red-packet-subtitle {
  font-size: 14px;
  color: #fce7e7;
  opacity: 0.8;
  animation: pulse 2s infinite;
}

.red-packet.disabled .red-packet-text {
  color: #d1d5db;
}

.red-packet.disabled .red-packet-subtitle {
  color: #e5e7eb;
  animation: none;
}

@keyframes pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.red-packet.opening {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* 粒子效果 */
.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #fbbf24 0%, #f59e0b 100%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
}

.extra-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
}

.extra-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #fbbf24 0%, #f59e0b 100%);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

/* 金币撒下特效 */
.falling-coin {
  position: fixed;
  font-size: 28px;
  z-index: 15;
  pointer-events: none;
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.3),
    0 0 10px rgba(251, 191, 36, 0.8),
    0 0 20px rgba(251, 191, 36, 0.4);
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8));
  transform-origin: center center;
  will-change: transform, opacity;
}

.particle-canvas {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}

/* 金额显示 */
.amount-display {
  position: fixed;
  top: 30%;
  left: 25%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: 68%;
  max-width: 210px;
  padding: 0 4px;
  box-sizing: border-box;
}

.amount-card {
  background: linear-gradient(135deg, #fff 0%, #fef3c7 100%);
  border-radius: 20px;
  padding: 30px 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 3px solid #fbbf24;
  box-sizing: border-box;
  width: 100%;
}

.amount-title {
  font-size: 18px;
  color: #dc2626;
  margin-bottom: 20px;
  font-weight: 600;
}

.amount-value {
  font-size: 36px;
  font-weight: bold;
  color: #dc2626;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  font-family: 'Courier New', monospace;
  word-break: break-all;
  overflow-wrap: break-word;
}

.amount-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.amount-actions {
  display: flex;
  justify-content: center;
}

.amount-actions .adm-button {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
  transition: all 0.3s ease;
}

.amount-actions .adm-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(220, 38, 38, 0.4);
}

/* 响应式设计 */
@media (max-width: 480px) {
  .red-packet {
    width: 180px;
    height: 250px;
  }
  
  .red-packet-text {
    font-size: 20px;
  }
  
  .red-packet-subtitle {
    font-size: 12px;
  }
  
  .amount-display {
    top: 33%;
    left: 23%;
    width: 72%;
    max-width: 190px;
    padding: 0 3px;
  }
  
  .amount-value {
    font-size: 28px;
  }
  
  .amount-card {
    padding: 25px 15px;
  }
  
  .amount-title {
    font-size: 16px;
  }
  
  .coin {
    font-size: 20px;
  }
}

@media (max-width: 375px) {
  .red-packet {
    width: 160px;
    height: 220px;
  }
  
  .red-packet-text {
    font-size: 18px;
  }
  
  .amount-display {
    top: 35%;
    left: 20%;
    width: 75%;
    max-width: 170px;
    padding: 0 2px;
  }
  
  .amount-value {
    font-size: 24px;
  }
  
  .amount-card {
    padding: 20px 12px;
  }
  
  .amount-title {
    font-size: 14px;
  }
  
  .amount-subtitle {
    font-size: 12px;
  }
}

/* 动画增强 */
.red-packet::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
  100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

/* 红包状态统计样式 */
.red-stats {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  backdrop-filter: blur(10px);
}

.stats-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  min-width: 80px;
  flex: 1;
}

.stats-item.warning {
  background: rgba(255, 165, 0, 0.2);
  border: 1px solid #ffa500;
}

.stats-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.stats-value {
  font-size: 14px;
  font-weight: bold;
  color: #dc2626;
}

.stats-item.warning .stats-value {
  color: #ff8c00;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .red-stats {
    top: 15px;
    left: 15px;
    right: 15px;
    padding: 12px;
  }
  
  .stats-item {
    min-width: 70px;
    padding: 4px 8px;
  }
  
  .stats-label {
    font-size: 11px;
  }
  
  .stats-value {
    font-size: 13px;
  }
}

@media (max-width: 375px) {
  .red-stats {
    top: 12px;
    left: 12px;
    right: 12px;
    padding: 10px;
    gap: 8px;
  }
  
  .stats-item {
    min-width: 60px;
    padding: 3px 6px;
  }
  
  .stats-label {
    font-size: 10px;
  }
  
  .stats-value {
    font-size: 12px;
  }
}